<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<title>表关联关系管理</title>
	<meta http-equiv="content-type" content="text/html;charset=utf-8" />
	<script src="../../../script/base-import.js"></script>
	<script src="js/tableJoinManage.js"></script>
</head>
<body>
<table id="datagrid"></table>
<div id="open-dlg" class="easyui-dialog" style="width: 500px;height: 300px;" closed="true" modal="true">
	<div class="page-toolbar">
		<div class="page-toolbar-right">
			<a class="easyui-linkbutton" icon="icon-ok" href="javascript:void(0)" onclick="saveData()">确定</a> 
			<a class="easyui-linkbutton" icon="icon-cancel" href="javascript:void(0)" onclick="closeDialog()">取消</a>
		</div>
	</div>
	<form id="addForm">
		<input type="hidden" id="id"/>
		<table class="edit_table">
			<tr>
				<th>表名:</th>
				<td id="tableName1"></td>
				<th>字段:</th>
				<td><input id="fieldName1" style="width: 130px;"/></td>
			</tr>
			<tr>
				<th>关联表名:</th>
				<td><input id="tableName2" style="width: 130px;"/></td>
				<th>关联字段:</th>
				<td><input id="fieldName2" style="width: 130px;"/></td>
			</tr>
			<tr>
				<th>关联方式:</th>
				<td>
					<select id="joinType" style="width: 130px;">
						<option value="OneToOne">一对一</option>
						<option value="OneToMany">一对多</option>
						<option value="ManyToOne">多对一</option>
						<option value="ManyToMany">多对多</option>
					</select>
				</td>
				<th>强制关联:</th>
				<td>
					<select id="isNotNull" style="width: 130px;">
						<option value="1">是</option>
						<option value="0">否</option>
					</select>
				</td>
			</tr>
		</table>
	</form>
</div>
</body>
</html>